<?php

/*
/*
    $ts = new Xtemplates();
    $ts->setModels($users);
    $t = $ts->getTemplate();

    //$t->reset();
    echo $t->generate();

*/
*/

class Xtemplates
{
    protected $_template;
    protected $_theme = 'blueprint';
    protected $_style = 'basic';
    protected $_models;
    
    function __construct()
    {
        
    }

    public function setTheme( $theme )
    {
        $this->_theme = $theme;
    }

    public function setStyle( $style )
    {
        $this->_style = $style;
    }

    public function setModels( $models )
    {
        if(is_object($models)) {
            $models = Array($models);
        }
        $this->_models = $models;
    }

    public function getTemplate()
    {
        if( 'blueprint'==$this->_theme ) {
            return new XthemeBlueprint( $this->_models );
        }
        else {
            return false;
        }
    }
    

    
}








